package unitTool;

import java.util.LinkedHashMap;
import java.util.Map;

public class JsonUpload {
    private int error;
    private String url;
    private String msg;
    private JsonUpload(int error, String msg, String url){
        this.error = error;
        this.msg = msg;
        this.url = url;
    }
    public static JsonUpload success(String url){
        return new JsonUpload(0,"",url);
    }

    public static JsonUpload fail(String msg){
        return new JsonUpload(1,msg,"");
    }

    public int getError() {
        return error;
    }

    public String getUrl() {
        return url;
    }

    public String getMsg() {
        return msg;
    }
}
